﻿<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<?php

 if(!isset($_GET['token']) && isset($_GET['snid'])) {
  
  // Create log of users who accessed the grades
  $tkn = md5($_SERVER['REMOTE_ADDR']);
  $fh = fopen("qurra/visitlog.log", "a");
  $logstr = $_SERVER['REMOTE_ADDR']."\t".$_GET['snid']."\r\n";
  fwrite($fh, $logstr) or die("Cannot write to log.");
  fclose($fh);
  
  // Redirect the user to a new token.
  $urid = $_SERVER['PHP_SELF']."?snid=".$_GET['snid']."&token=".$tkn;
  header("Location: ".$urid);
  exit();
 }
 
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>RCSHS QuRRA</title>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8">

<link rel="stylesheet" href="../css-layouts/themes/defaulttheme.css" type="text/css" />
<link rel="stylesheet" href="../css-layouts/headlinks.css" type="text/css" />

</head>

<body>

<div id="mainhead"><br /><br /><br /></div>
<hr />

<p>
<img src="qurra/mp-qurra.png" style="margin: auto; display: block;" alt="QuRRA" />
<br /><br />
</p>

<?php
 
 if(isset($_GET['token']) && isset($_GET['snid'])) {

?>

<form method="post" action="qurra/scanrecd.php">

<p>
Student Name: <input type="text" />
<input type="hidden" name="loctkn" value="<?php echo $_GET['token']; ?>" />
<input type="hidden" name="snid" value="<?php echo $_GET['snid']; ?>" />
</p>

</form>

<?php

 }

?>

<div class="footnav" style="text-align: center;">

<hr />


<b>Main Page</b> ||
<a href="../modules">Parent Informer</a> ||
<a href="#">Help</a> ||
<a href="../externalaffairs/links.php">Links</a> ||
<a href="#">About</a>
<br />

<span id="copyme">
&copy; 2011 Roosevelt College Science High School. All rights reserved.
</span>

</div>
</body>
</html>